module.exports = {
  devServer: {
    port: "8080",
    proxy: {
      "^/api": {
        target: "接口路径", //接口路径
        ws: true, //代理websocked
        changeOrigin: true, //虚拟的站点需要更管origin
        pathRewrite: {
          "^/api": "", //重写路径
        },
      },
    },
  },
};
